<?php
	session_start();
	error_reporting(0);
	
	$username=$_SESSION['username'];
	 $uid=$_SESSION['adminid'];
	
	include("include/header.php");
	include("include/config.php");
	include("include/functions.php");
	
?>
<div class="container-fluid">
	<div class="row-fluid">
		<?php
			include("include/sidebar.php");
		?>		
		<?php
			if($_GET['data']=='settings'){
				$global = get_table_data('globalsettings',null);
				include("settings.php");
			}
			if($_GET['data']=='projects'){
				$pages = get_table_data('on_projects',null);
				
				include("projects.php");
			}if($_GET['data']=='editproject'){
				$pages = mysqli_query($db_connect, "select * from on_projects where id ='$_GET[page]'");
				$page = mysqli_fetch_array($pages);
				include("addproject.php");
			}if($_GET['data']=='addproject'){
				include("addproject.php");
			}
			if($_GET['data']=='pages'){
				$pages = get_table_data('pages',null);
				
				include("pages.php");
			}if($_GET['data']=='editpage'){
				$pages = get_table_data('pages',array('page_id !'=>$_GET['page']));
				$page = get_table_data('pages',array('page_id'=>$_GET['page']));
				include("addpage.php");
			}if($_GET['data']=='addpage'){
				include("addpage.php");
			}
			if($_GET['data']=='addimage'){
				include("page_images.php");
			}if($_GET['data']=='gallary'){
				include("gallary.php");
			}
			if($_GET['data']=='addgallary'){
				include("addgallary.php");
			}if($_GET['data']=='brochure'){
				include("broucher.php");
			}
			if($_GET['data']=='addbrochure'){
				include("addbrocher.php");
			}

		?>
	</div>
	<?php
		include("include/footer.php");
	?>
</div>
